<wxs src="../../utils/common.wxs" module="filter" />
<view class='addmini'>
     <image  src="../../image/shoucang.png" />
     <label>点击添加到桌面,下次进来更方便</label> 
</view>
<import src="../../component/component" />

<view class='floatPage' wx:if='{{showA}}'>
     <view class='aa'>
        <image class='img'  src="http://qn.shebeib.com/yaoqingshouye.png" bindtap='turnInvitation'></image>
        <image class='img1'  src="../../image/close_button.png" bindtap='closeInvitation'></image>
     </view>
</view>


<view class='floatView'>
    <image wx:if='{{toTop}}' class="edit" src="../../image/shequ/to-top.png" bindtap="turnPage"/>
    
</view>
 <login wx:if='{{showLogin}}' bindloginSuccess="onLoginSuccess" bindcannel='onCannel'></login>
 <view>
    <!-- <button open-type='share'>分享</button> -->
    <swiper-item1 bindloginerr='showLoading'></swiper-item1>
    <view class="tabbar">
        <view>企业专场</view>
        <view bindtap="showMyToast">
            <text>更多</text>
            <image src="../../image/more_icon.png" />
        </view>
    </view>
    <view class='advertising' >

        <image  bindtap='turnComponyDetail' data-code='0'  src="../../image/home/p1.png" />
        <image bindtap='turnComponyDetail' data-code='9' src="../../image/home/p10.png" />
        <image bindtap='turnComponyDetail' data-code='3' src="../../image/home/p4.png" />
    </view>
    <view class="tabbar" wx:if='{{newList}}'>
        <view>今日热门</view>
        <view bindtap="showMyToast2">
            <text>更多</text>
            <image src="../../image/more_icon.png" />
        </view>
    </view>
    <view class='newList' wx:if='{{newList}}' wx:key="index" >
       <view bindtap='turnNewDetail' data-model='{{item}}' wx:for="{{newList}}" wx:key="index" > {{filter.fitMsg(item.title)}} <label wx:if='{{index<3}}'>热</label></view>
       
    </view>
    <view class="tabbar">
        <view class='tabbar-title'>塔塔严选机</view>
    </view>
    <!-- 新增-->
    <view class='smallBanner' bindtap='turnTata'>
      <view class='left'>
        <view>真实一手货源</view>
        <view>塔塔管家实地认证设备</view>
        <view> <image src="../../image/yxj/zuolg.png" />帮您放心交易<image  src="../../image/yxj/youlg.png" /></view>
      </view>
       <!-- 轮播图-->
      <view class='right'>
          <swiper indicator-dots="true"
            autoplay="ture" 
            indicator-color="#ffffff" 
            indicator-active-color="#ccffffff"
            interval="3000" 
            duration="1000">
            <block wx:for="{{bannerList}}">
                
              <swiper-item class="swiper_list">
                <image src="{{item}}" mode="scaleToFill"  />
              </swiper-item>
            </block>
        </swiper> 
      </view>
    </view>
    <view class='icon'>
        
         <image  class='icon2' bindtap='turnSheQu' data-code='20' src="../../image/home/icon1.png" />
         <image  class='icon2' bindtap='turnSheQu' data-code='30' src="../../image/home/icon2.png" />
    </view>
    <view class="tabbar">
        <view>塔塔店铺</view>
        <view bindtap="moreEredarClick">
            <text>更多</text>
            <image src="../../image/more_icon.png" />
        </view>
    </view>
    <view class="header_image">
        <view class="list_float" wx:if="{{userheaderImageList.length>0}}" wx:for="{{userheaderImageList}}" wx:key="index" wx:if='{{index<5}}'>
            <view>
                <image catchtap="eredarClick" data-code='{{item.wxUser.openid}}' class="image_header" src="{{item.wxUser.avatarUrl}}" />
                <image class="image_bz" src="../../image/authentication_icon.png" />
            </view>
            <view>{{filter.fitName(item.wxUser.nickName)}}</view>
            <view>在售设备<text>{{item.num}}台</text></view>
        </view>
        <view class="clear"></view>
    </view>
    <view class="circle"></view>
   <view class="tbaar_tuijian"> 
        <view class="tj_left">
            <text class="title">塔塔严选机</text>
            <!-- <view>
               <image src="../../image/position_icon.png" />
               <ssq-item bindmyevent="onMyEvent" item="{{item}}"></ssq-item>
            </view> -->
        </view> 
    </view>
    <product-list bindloginerr='showLoading' wx:for="{{showList}}" wx:key="index" wx:for-item="item" item="{{item}}"></product-list>
     <view class='more' wx:if='{{showList.length>0}}'>{{moreText}}</view>
</view>


